package com.mbc.hr.entities;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@SuppressWarnings("serial")
@Entity
@Table(name="HR_CalendarEventReminder")
@NamedQueries({
	@NamedQuery(name="CalendarEventReminder.deleteByEventID",query="DELETE FROM CalendarEventReminder cer WHERE cer.eventID = :eventID"),
	@NamedQuery(name="CalendarEventReminder.findAllByEventID", query="SELECT cer FROM CalendarEventReminder cer WHERE cer.eventID = :eventID"),
	@NamedQuery(name="CalendarEventReminder.findAllByReminderDateTime", query="SELECT cer FROM CalendarEventReminder cer WHERE cer.reminderDateTime = :dateTime")
})
public class CalendarEventReminder implements Serializable {

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private long autokey;
	private Long eventID;
	private int reminderPeroid;
	private long reminderDateTime;
	private Byte reminderType;
	private Byte periodType;

	public Long getEventID(){
		return eventID;
	}

	public void setEventID(Long eventID){
		this.eventID = eventID;
	}

	public long getReminderDateTime(){
		return reminderDateTime;
	}

	public void setReminderDateTime(long reminderDateTime){
		this.reminderDateTime = reminderDateTime;
	}

	public Byte getReminderType(){
		return reminderType;
	}

	public void setReminderType(Byte reminderType){
		this.reminderType = reminderType;
	}

	public Byte getPeriodType(){
		return periodType;
	}

	public void setPeriodType(Byte periodType){
		this.periodType = periodType;
	}

	public int getReminderPeroid() {
		return reminderPeroid;
	}

	public void setReminderPeroid(int reminderPeroid) {
		this.reminderPeroid = reminderPeroid;
	}

	public long getAutokey() {
		return autokey;
	}

	public void setAutokey(long autokey) {
		this.autokey = autokey;
	}


}
